/*
 * @Author: 谢陈洁
 * @Date: 2025-07-07 13:19:23
 * @LastEditors: 谢陈洁
 * @LastEditTime: 2025-07-18 12:23:59
 * @Description: file content
 */
export const columns = [
  { prop: 'id', label: 'ID', width: 80 },
  { prop: 'name', label: '名称', width: 120 },
  { prop: 'description', label: '描述' },
  { prop: 'order', label: '排序', width: 80 },
  { label: '操作', width: 200, slot: 'action', fixed: 'right' }
]

export const formConfig = [
  {
    label: '名称',
    prop: 'name',
    span: 24,
    rules: [{ required: true, message: '请输入名称' }]
  },
  {
    label: '描述',
    prop: 'description',
    span: 24,
    attrs:{
      type: 'textarea',
      rows: 4
    },
  },
  {
    label: '排序',
    prop: 'order',
    span: 24,
    attrs:{
      type: 'number'
    },
  }
]
